<?php
require_once WEB_MODEL_DIR . DIRECTORY_SEPARATOR . 'DAO' . DIRECTORY_SEPARATOR . 'GameStatisticDAO.php';
class GameStatisticService {

    public function insertGameDownload($context, $result, $gameId) {
        $gameArr = null;
        try {
            $gameStatisticDAO = new GameStatisticDAO($context);

            $gameStatisticDAO -> insertGameDownload($gameId);

            $result -> setSuccess();

        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

    }
}
?>